package world2d;
import box2D.collision.shapes.B2PolygonShape;
import box2D.dynamics.B2BodyDef;
import box2D.dynamics.B2FixtureDef;
import box2D.dynamics.B2Fixture;
import box2D.dynamics.B2Body;
import box2D.dynamics.B2World;
import openfl.display.Sprite;

/**
 * ...
 * @author Marcos Martinez
 */
class Ground2D extends  Sprite
{
	private var m_cWorld:B2World;

	public function new(cWorld:B2World) 
	{
		super();
		m_cWorld = cWorld;
		
	}
	public function create():Void
	{
		var groundBodyDef:B2BodyDef = new B2BodyDef();
		groundBodyDef.position.set(0, 400);
		var groundBody:B2Body = m_cWorld.createBody(groundBodyDef);
		var groundShape:B2PolygonShape = new B2PolygonShape();
		groundShape.setAsBox(800, 1);
		groundShape.
		var groundFixtureDef:B2FixtureDef = new B2FixtureDef();
		groundFixtureDef.shape = groundShape;
		var groundFixture:B2Fixture = groundBody.createFixture(groundFixtureDef);
	}
}